<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>评论列表</title>
		<link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="./css/reset.css">
		<link rel="stylesheet" href="./css/iconfont.css">
		<link rel="stylesheet" href="./css/main.css">
		<script src="./libs/jquery/jquery.min.js"></script>
		<script src="./libs/bootstrap/js/bootstrap.min.js"></script>
		<script src="./libs/art-template/template-web.js" type="text/javascript" charset="utf-8"></script>
		<script src="libs/tinymce_5.5.1/tinymce.min.js" type="text/javascript" charset="utf-8"></script>
		<!-- layUI -->
		<link rel="stylesheet" href="./libs/layui/css/modules/layer/default/layer.css">
		<link rel="stylesheet" href="./libs/layui/css/layui.css" media="all">
		<script src="./libs/layui/lay/modules/layer.js"></script>
		<script src="./libs/layui/layui.js"></script>

		<script src="./js/jqheader.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/commen_tlist.js" type="text/javascript" charset="utf-8"></script>

	</head>

	<!-- 评论 -->
	<script type="text/html" id='commen'>
	{{if data.length}}
	{{each data v}}
	<tr class="danger">
		<th>{{v.author}}</th>
		<th>{{v.content}}</th>
		<td>{{v.title}}</td>
		<td>{{v.date}} {{v.time}}</td>
		<td>{{v.state}}</td>
		<td class="text-center">
			{{if v.state === '待审核'}}
			<a href="javascript:void(0);" class="btn btn-success btn-xs btnAccept" data-id={{v.id}}>批准</a>
			<a href="javascript:void(0);" class="btn btn-warning btn-xs btnReject" data-id={{v.id}}>拒绝</a>
			{{else if v.state === '已通过'}}
				<a href="javascript:void(0);" class="btn btn-warning btn-xs btnReject" data-id={{v.id}}>拒绝</a>
				{{else if v.state === '已拒绝'}}
					<a href="javascript:void(0);" class="btn btn-success btn-xs btnAccept" data-id={{v.id}}>批准</a>
					{{/if}}
					<a href="javascript:void(0);;" class="btn btn-danger btn-xs btnDelete" data-id={{v.id}}>删除</a>
		</td>
	</tr>
	{{/each}}
	{{else}}
		<tr>没有结果</tr>
		{{/if}}
	</script>

	<body>
		<div class="container-fluid">
			<div class="common_title">
				评论列表
			</div>
			<div class="container-fluid common_con">
				<table class="table table-striped table-bordered table-hover mp20">
					<thead>
						<tr>
							<th style="width:7%">作者</th>
							<th style="width:25%">评论</th>
							<th style="width:25%">评论在</th>
							<th style="width:15%">提交于</th>
							<th style="width:6%">状态</th>
							<th class="text-center" style="width:12%">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr class="danger">
							<td>武秀英</td>
							<td>外影广条同取水权科速工与。矿身面却属次养导务作者用品油调。高石期品极放存斗一号口消别共去。</td>
							<td>《世界，你好》</td>
							<td>1970-03-15 11:31:50</td>
							<td>已拒绝</td>
							<td class="text-center">
								<a href="javascript:void(0);;" class="btn btn-danger btn-xs">删除</a>
							</td>
						</tr>

					</tbody>
				</table>
				<div id="pager" class="row text-center"></div>
			</div>
		</div>
	</body>
</html>
